package com.yq.design.mediator;

/**
 * @ClassName User
 * @Description TODO
 * @Author yaoqiang
 * @Date 2021/8/30 10:28
 * @Version 1.0
 */
public class User {
    public String name;

    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void sendMessage(String message){
        ChatRoom.showMessage(name ,message);
    }

}
